#version 300 es

layout(location=0) in vec4 vPosition;
//layout(location=1) in vec4 aColor;

//矩阵
uniform mat4 u_Matrix;

out vec4 vColor;

void main() {

    gl_Position=u_Matrix*vPosition;//顶点位置
    gl_PointSize=10.0;//顶点大小
    //    vColor=aColor;    //颜色

    if(vPosition.z!=0.0){
        vColor=vec4(0.0,0.0,0.0,1.0);
    }else{
        vColor=vec4(0.9,0.9,0.9,1.0);
    }


}



